<?php
	$q=$_GET["q"];

	include "Global.php";
	//Conexion a mysql y a la base de datos
	$connection = DBConnect();

	$query="SELECT name FROM tours where name='$q'";
	$resultado = mysql_query($query) or die ('\n error en query ' . mysql_error());
	$nr=mysql_num_rows($resultado);
	if($nr==1||$q==''){
		echo "<span class='style8'>Invalid name </span>";
	}else{
		echo "<p align='center'><input name='submit2' type='submit' class='subHeader' value='Save Tour' onclick='return CreateTour();'/></p>";
	}

	DBCLose($connection);
?>
